import request from "@/utils/request";

//查询柜机类型列表
export function listCabinetType(query) {
  return request({
    url: "/device/cabinetType/list",
    method: "get",
    params: query,
  });
}

//新增
export function addCabinetType(data) {
  return request({
    url: "/device/cabinetType",
    method: "post",
    data: data,
  });
}

//详情
export function getCabinetType(id) {
  return request({
    url: "/device/cabinetType/" + id,
    method: "get",
  });
}

//修改
export function updateCabinetType(data) {
  return request({
    url: "/device/cabinetType",
    method: "put",
    data: data,
  });
}

// 删除柜机类型
export function delCabinetType(id) {
  return request({
    url: "/device/cabinetType/" + id,
    method: "delete",
  });
}

//获取列表
export function getCabinetTypeList() {
  return request({
    url: "/device/cabinetType/list",
    method: "get",
  }); 
}
